package com.jdbc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by
 * 连接数据库的controller
 * @author touni
 * @date 2019/4/8
 * @time 14:49
 */
@Controller
@RequestMapping("/jdbc")
public class JDBCController {

    @Autowired
    private JDBCService jdbcService;


    @RequestMapping("/list/{custId}")
    public Object queryDatabase(Long custId){
        return jdbcService.queryDatebase(custId);



    }








}
